package com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.Product;

import java.util.List;

public interface ProductService {
    void save(Product product);


    void update(Product product);

    Product findById(String id);

    List<Product> findAll();

    PageInfo findAll(int page, int size);


    void deleteByIds(String[] ids);

    void delete(String id);

    void close(String[] arr);

    void open(String[] arr);

    PageInfo findByName(String pName, int currentPage, int pageSize);

}
